import {
  DOM_TYPE_BAR,
  DOM_TYPE_LINE,
  DOM_TYPE_PIE,
  DOM_TYPE_VIS,
  DOM_TYPE_GAUGE,
  DOM_TYPE_PRO6,
  DOM_TYPE_STACK_LINE,
  DOM_TYPE_STACK_BAR,
  DOM_TYPE_DOUGHNUT,
  DOM_TYPE_NEST_PIE,
  DOM_TYPE_ROS_PIE,
  DOM_TYPE_MULTIPLE_GAUGE,
  DOM_TYPE_BUBBLE,
  DOM_TYPE_RADAR,
  DOM_TYPE_FUNNEL,
  DOM_TYPE_WATER_CONTENT,
  DOM_TYPE_AREA,
  DOM_TYPE_BASCI_RELATION
} from '@/utils/const';

// 组件配置
export const dragModels = [
  {
    name: '基本折线图',
    icon: '200.png',
    cfiLayout: { w: 4, h: 8, minW: 4, minH: 8 },
    cfiType: DOM_TYPE_LINE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本折线图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本柱状图',
    icon: '100.png',
    cfiLayout: { w: 4, h: 8, minW: 4, minH: 8 },
    cfiType: DOM_TYPE_BAR,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本柱状图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    // eslint-disable-next-line no-dupe-keys
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本饼图',
    icon: '300.png',
    cfiLayout: { w: 4, h: 8, minW: 4, minH: 8 },
    cfiType: DOM_TYPE_PIE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本饼图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本散点图',
    icon: '400.png',
    cfiLayout: { w: 4, h: 8, minW: 4, minH: 8 },
    cfiType: DOM_TYPE_VIS,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本散点图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '单仪表盘',
    icon: '500.png',
    cfiLayout: { w: 4, h: 11, minW: 4, minH: 11 },
    cfiType: DOM_TYPE_GAUGE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '单仪表盘',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本条形图',
    icon: '600.png',
    cfiLayout: { w: 6, h: 4, minW: 6, minH: 4 },
    cfiType: DOM_TYPE_PRO6,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本条形图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '堆叠条形图',
    icon: '601.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_STACK_LINE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '堆叠条形图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '堆叠柱状图',
    icon: '101.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_STACK_BAR,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '堆叠柱状图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '甜甜圈图',
    icon: '301.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_DOUGHNUT,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '甜甜圈图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '嵌套饼图',
    icon: '302.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_NEST_PIE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '嵌套饼图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '玫瑰图',
    icon: '303.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_ROS_PIE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '玫瑰图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '多仪表盘',
    icon: '501.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_MULTIPLE_GAUGE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '多仪表盘',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '气泡图',
    icon: '700.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_BUBBLE,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '气泡图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '雷达图',
    icon: '800.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_RADAR,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '雷达图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '漏斗图',
    icon: '110.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_FUNNEL,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '漏斗图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '象形柱图',
    icon: '120.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_WATER_CONTENT,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '象形柱图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本面积图',
    icon: '130.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_AREA,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本面积图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  },
  {
    name: '基本关系图',
    icon: '900.png',
    cfiLayout: { w: 6, h: 6, minW: 6, minH: 6 },
    cfiType: DOM_TYPE_BASCI_RELATION,
    cfiEvent: { glass: 1, filter: 1, export: 1, detail: 1 },
    cfiName: '基本关系图',
    cfiIsUpdate: 1,
    cfiDatasourceId: '',
    cfiConfigId: '',
    cfiUpdateHz: '',
    cdsOdbcType: '1'
  }
];
